package com.citywithincity.db.interfaces;

public interface Select<T> extends Where<T> {

	// %所在位置
	public static final int LIKE_LEFT = 0;
	public static final int LIKE_RIGHT = 1;
	public static final int LIKE_BOTH = 2;
	public static final String DESC = "DESC";
	public static final String ASC = "ASC";

	public static final String INNER = "INNER";
	public static final String LEFT = "LEFT";
	public static final String RIGHT = "RIGHT";

	
	
	int executeUpdate(String sql,Object...args);
	
	
	T orderBy(String order, String dir);

	T orderBy(String order);

	T groupBy(String group);

	T select(String columns);

	T selectDistinct(String column);

	T join(String tableName, String on, String type);

	T join(String tableName, String on);
	
	void clear();
	
}
